package com.autonavi.yunda.yunji.core.engine.javascript;

import lombok.Data;

@Data
public class AstNode {
    String type;
    int start;
    int end;

    int innerStart;

    int innerEnd;
    String name;
    String innerType;

    public AstNode(String type, int start, int end, int innerStart, int innerEnd, String name, String innerType) {
        this.type = type;
        this.start = start;
        this.end = end;
        this.innerStart = innerStart;
        this.innerEnd = innerEnd;
        this.name = name;
        this.innerType = innerType;
    }

    public AstNode(String type, int start, int end, int innerStart, int innerEnd, String name) {
        this.type = type;
        this.start = start;
        this.end = end;
        this.innerStart = innerStart;
        this.innerEnd = innerEnd;
        this.name = name;
    }

    String content;

    String debugValue;
}
